const Router = require("koa-router");
const {
  verifyUser,
  handledPassword,
} = require("../middleware/user.middleware");
const { create, getUserInfo } = require("../controller/user.controller");
const userRouter = new Router({ prefix: "/user" });
// 创建用户
userRouter.post("/", verifyUser, handledPassword, create);
// 获取用户
userRouter.get("/", getUserInfo);

module.exports = userRouter;
